package org.csu.zhangdian.service;

import org.csu.zhangdian.domain.MemberInfo;
import org.csu.zhangdian.dao.MemberInfoDAO;
import org.csu.zhangdian.service.MemberInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class MemberInfoServiceImpl implements MemberInfoService {

    @Autowired
    private MemberInfoDAO memberInfoDAO;

    @Override
    public ArrayList<MemberInfo> getAllMemberInfo() {
        return memberInfoDAO.findAll();
    }

//    @Override
//    public MemberInfo getAuthority(MemberInfo memberInfo) {
//        if (memberInfo.getEmail().equals("1")){
//            return memberInfo;
//        }
//        else {
//            return null;
//        }
//    }
}
